﻿Imports DARSClassLibrary

Public Class LandingPage
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'This will grab the name of the current user from the session object and 
        'display it in the label. Commented out for Page testing

        'Dim objStudent As Student = CType(Session("CurrentUser"), Student)
        'lblCurrentName.Text = objStudent.Fname & objStudent.LName
    End Sub

    Protected Sub Logout(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogout.ServerClick
        Session.Abandon()
        Response.Redirect("Welcome.aspx")
    End Sub

End Class